<?php
	require_once '../classes/Config.class.php';
	require_once '../classes/Database.class.php';
	
	$Config = new Config();
	$DB = new Database();
	
	$sql = $DB -> select('*', 'Storage_Ftse', 'Symbol = \'MKS.L\'', false, 'Timestamp', 'ASC');
	$bid = 0;
	while ($row = $DB -> row($sql)) {
		if ($bid === 0) {
			$bid = $row['Bid'];
			echo $row['Timestamp'], "\n";
		}
		
		if ($row['Bid'] < 120) echo $row['Timestamp'];
	}
?>